<td>
    <ul class="sf_admin_td_actions">
        <li class="sf_admin_action_up">
            <?php
                $minPos = $dolpheuscms_pages->getMinPosition();
                foreach($minPos as $pos){
                    if($dolpheuscms_pages->getPosition() != $pos['firstPos']){
                        echo link_to(__('&nbsp;', array(), ''), 'pages/listUp?id=' . $dolpheuscms_pages->getId(), array('class' => 'up'));
                    }else{
                        echo link_to(__('&nbsp;', array(), ''), '@dolpheuscms_pages', array('class' => 'disabledUp'));
                    }
                }
            ?>
            <?php //echo link_to(__('Up', array(), 'messages'), 'pages/listUp?id=' . $dolpheuscms_pages->getId(), array()) ?>
        </li>
        <li class="sf_admin_action_down">
            <?php
                $maxPos = $dolpheuscms_pages->getMaxPosition();
                foreach($maxPos as $pos){
                    if($dolpheuscms_pages->getPosition() != $pos['lastPos']){
                        echo link_to(__('&nbsp;', array(), ''), 'pages/listDown?id=' . $dolpheuscms_pages->getId(), array('class' => 'down'));
                    }else{
                        echo link_to(__('&nbsp;', array(), ''), '@dolpheuscms_pages', array('class' => 'disabledDown'));
                    }
                }
            ?>
            <?php //echo link_to(__('Down', array(), 'messages'), 'pages/listDown?id=' . $dolpheuscms_pages->getId(), array()) ?>
        </li>
        <?php echo $helper->linkToEdit($dolpheuscms_pages, array('params' => array(), 'class_suffix' => 'edit', 'label' => 'Edit',)) ?>
        <?php echo $helper->linkToDelete($dolpheuscms_pages, array('params' => array(), 'confirm' => 'Are you sure?', 'class_suffix' => 'delete', 'label' => 'Delete',)) ?>
    </ul>
</td>
